﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
using System.Runtime.Serialization;
namespace ET.Score.Service.Dtos
{
   public class VobcAdvInfDto:VobcInfoDto
    {
       public VobcAdvInfDto(VobcInfoDto item)
       {
#region 基础数据拷贝
           this.ActivationEnd = item.ActivationEnd;
           this.CheckCode = item.CheckCode;
           this.CommunicationState = item.CommunicationState;
           this.DeviceId = item.DeviceId;
           this.ErrorState = item.ErrorState;
           this.EsbState = item.EsbState;
           this.FrameDescription = item.FrameDescription;
           this.GateMode = item.GateMode;
           this.GateState = item.GateState;
           this.GroupId = item.GroupId;
           this.LinkDriection = item.LinkDriection;
           this.LinkId = item.LinkId;
           this.LinkOffset = item.LinkOffset;
           this.LocationState = item.LocationState;
           this.MaEndType = item.MaEndType;
           this.MaLinkDirection = item.MaLinkDirection;
           this.MaLinkId = item.MaLinkId;
           this.MaLinkOffset = item.MaLinkOffset;
           this.MilliSeconds = item.MilliSeconds;
           this.Records = item.Records;
           this.RecordTime = item.RecordTime;
           this.RecordType = item.RecordType;
           this.RemaindTime = item.RemaindTime;
           this.RescueAssignedId = item.RescueAssignedId;
           this.RunControlMode = item.RunControlMode;
           this.RunLevel = item.RunLevel;
           this.SBI = item.SBI;
           this.SimuLinkTrainId = item.SimuLinkTrainId;
           this.TimeId = item.TimeId;
           this.TrainDirection = item.TrainDirection;
           this.TrainId = item.TrainId;
           this.TrainMode = item.TrainMode;
           this.TrainPreinstall = item.TrainPreinstall;
           this.TrainSpeed = item.TrainSpeed;
           this.VobcId=item.VobcId;
           newScorelst = new List<CScoreItem>();
           Scorelst = new List<int>();
#endregion
       }
       public VobcAdvInfDto()
       {
           Scorelst = new List<int>();
       }
        /// <summary>
        /// 用户ID信息
        /// </summary>
        [DataMember]
        public string UserId { get; set; }

        /// <summary>
        /// 分数信息
        /// </summary>
        [DataMember]
        public List<int> Scorelst { get; set; }
        [DataMember]
        public List<CScoreItem> newScorelst { get; set; }
        /// <summary>
        /// 总分
        /// </summary>
        [DataMember]
        public int TotalScore { get; set; }
        /// <summary>
        /// 上一个站点停车点ID
        /// </summary>
        [DataMember]
        public UInt16 LastStopPointId { get; set; }
        /// <summary>
        /// 当前站点停车点ID
        /// </summary>
        [DataMember]
        public UInt16 CurrentStopPointId { get; set; }
      
    }
}
